package com.fnn.entity;

public class User {
    private int user_id;            //用户id
    private String user_name;        //用户名称
    private String user_password;      //用户密码
    private String user_email;         //用户邮箱(用户账号)
    private String user_role;           //用户角色(admin：管理员，user：普通用户)
    private int user_status;           //用户状态(0：正常，1：禁用)
    private String session_id;           //用户登录凭证

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public String getUser_email() {
        return user_email;
    }

    public void setUser_email(String user_email) {
        this.user_email = user_email;
    }

    public String getUser_role() {
        return user_role;
    }

    public void setUser_role(String user_role) {
        this.user_role = user_role;
    }

    public int getUser_status() {
        return user_status;
    }

    public void setUser_status(int user_status) {
        this.user_status = user_status;
    }

    public String getSession_id() {
        return session_id;
    }

    public void setSession_id(String session_id) {
        this.session_id = session_id;
    }

    public User(int user_id, String user_name, String user_password, String user_email, String user_role, int user_status, String session_id) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.user_password = user_password;
        this.user_email = user_email;
        this.user_role = user_role;
        this.user_status = user_status;
        this.session_id = session_id;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", user_password='" + user_password + '\'' +
                ", user_email='" + user_email + '\'' +
                ", user_role='" + user_role + '\'' +
                ", user_status=" + user_status +
                ", session_id='" + session_id + '\'' +
                '}';
    }
    public User(){
    }
}
